/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package prop;

import java.io.Serializable;

/**
 *
 * @author Michal
 */
public class Sesion implements Serializable {
    protected Configuracion conf;
    protected Mesa mesa;
    protected int numPartidas;

    public Sesion() {
        
    }
    public Sesion(Configuracion c) {
        conf = c;
        int numb = c.getInt("NumBarajas");
        int numc = c.getInt("NumComodines");
        mesa = new Mesa(numb, numc, c.getInt("NumJugadores"));
        numPartidas = 0;
    }

    public Mesa getMesa() {
        return mesa;
    }

    public Configuracion getConf() {
        return conf;
    }

    public int getNumPartidas() {
        return numPartidas;
    }

    public void incrNumPartidas() {
        numPartidas = numPartidas + 1;
    }
}
